#ifndef USERPERSONAL_UI_LOGIC_H
#define USERPERSONAL_UI_LOGIC_H

#include <QDebug>
#include <QObject>
#include "UserPersonal_ui.h"
#include "address_ui.h"
#include "address_ui_logic.h"
#include "order_widget_logic.h"
#include "order_widget_ui.h"
#include "personal_info_logic.h"



class UserPersonalLogic : public QObject
{
    Q_OBJECT
public:
    explicit UserPersonalLogic(UserPersonal *ui, QObject *parent = nullptr);
    UserPersonalLogic(QObject *parent = nullptr);
    AddressUI *addressInfoUi;
    AddressLogic *addressLogic;
    OrderWidgetUI *orderInfoUi;
    OrderWidgetLogic *orderLogic;
    PersonalInfoUI *personInfoUi;
    PersonalInfoLogic *personLogic;
    PptpClient pptpclient;
    PptpMessage requestMessage;
    PptpMessage responseMessage;
    ~UserPersonalLogic();
    void getAvatar();

    //void onOrderListResponse(PptpMessage responseMessage);
    //void fetchProductDetails(int productId);
    //void onProductDetailsResponse(PptpMessage responseMessage);

public slots:
    //void fetchOrderList();
    void onPersonalInfoClicked();
    void onAddressManageClicked();
    void getUserInfo();
    void onUserInfoResponse(PptpMessage responseMessage);
    void onGetAvatarResponse(PptpMessage responseMessage);


private:
    UserPersonal *ui;


};

#endif // USERPERSONAL_UI_LOGIC_H

